package com.lkm.market2_0.m_imple.steelyardserver.server;

import com.lkm.frame.P;

import java.util.concurrent.ConcurrentHashMap;

public class ClientSessionMap {


    private static ClientSessionMap instance=new ClientSessionMap();
    public static ClientSessionMap getInstance() {
        return instance;
    }

    

    private ConcurrentHashMap<String ,String > clientSessionId_cupCode_map=new ConcurrentHashMap<>();

    

    public void put(String  steelyardMac,String clientSessionId){
        if(steelyardMac==null)
            return  ;
        P.d(steelyardMac+"  "+clientSessionId);
        clientSessionId_cupCode_map.put(steelyardMac,clientSessionId);
    }

    

    public String getClientSessionIdBysteelyardMac(String  steelyardMac){
        if(steelyardMac==null)
            return null;
        return clientSessionId_cupCode_map.get(steelyardMac);
    }
}
